home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group93c.txt / 000074_icon-group-sender _Wed Oct 20 11:01:27 1993.msg < prev    next >
Internet Message Format  |  1994-02-02  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Wed, 20 Oct 1993 13:34:49 MST
  2. Message-Id: <199310201609.AA29993@optima.CS.Arizona.EDU>
  3. Date: Wed, 20 Oct 93 11:01:27 CDT
  4. From: "Viktors Berstis" <viktors@vnet.IBM.COM>
  5. X-Addr: tieline 793-1547 (512)823-1547
  6.         MS 2990 IBM
  7.         11400 Burnet Rd
  8.         Austin, TX 78758
  9. To: icon-group@cs.arizona.edu
  10. Subject: SNOBOL4 and TABLEs
  11. Status: R
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13.  
  14. In regard to your question about putting null entries in SNOBOL4 TABLES.  They
  15. in fact do occupy another slot in the TABLE.  A way to fix this is to make
  16. sure the table contains at least one non-null value.  Then convert it to an
  17. array and then convert it back.  Remember to get rid of the array.  This won't
  18. solve your problem if you happen to have named references to entries in the
  19. table:
  20.     X = TABLE()
  21.     X<123> = NULL
  22.     Q = .X<123>
  23.  
  24. Q will make the old table hang around, in case you might use Q to store a new
  25. value in that table entry (be it null or something else).
  26.  
  27. If you don't do the above, you can periodically clean up by converting to the
  28. array and back.
  29.  
  30. -Viktors
  31.